TARGET = myapp
TEMPLATE = app
QT += core gui widgets network
requires(qtConfig(filedialog))

HEADERS  +=     \
        HEADERSFLAGS


SOURCES  +=    \           
        SOURCESFLAGS


FORMS +=        \
        UIFLAGS


INCLUDEPATH  += \
            INCFLAGS


RESOURCES +=    \
            RESFLAGS


# 指定对象文件(.o)的输出目录
OBJECTS_DIR = build/obj

# 指定MOC文件的输出目录
MOC_DIR = build/moc

# 指定UI文件生成的头文件输出目录
UI_DIR = build/ui

# 指定资源文件(.qrc)编译后的输出目录
RCC_DIR = build/rcc

# 指定生成的可执行文件的输出目录
DESTDIR = build/bin

# 确保构建系统在构建前创建这些目录
QMAKE_EXTRA_CLEAN += $OBJECTS_DIR/* $MOC_DIR/* $UI_DIR/* $RCC_DIR/*

# 构建完成将目标拷贝至当前目录下
QMAKE_POST_LINK += "cp $$DESTDIR/$$TARGET ./"



